//(c) Copyright 2012 Hewlett-Packard Development Company, L.P.
//
//Confidential computer software. Valid license from HP required for possession, use or copying.
//Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, 
//and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license.

package com.lp.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.lp.dao.CollectorInstanceDao;
import com.lp.entity.CollectorInstance;

@Controller
//类似Struts的Action
public class CollectorInstanceController {
	@Autowired
	private CollectorInstanceDao dao;

	@RequestMapping("collList.action")
	public ModelAndView list() {
		ModelAndView view = new ModelAndView("collList");
		List<CollectorInstance> list = dao.getCollectorInstances();
		view.getModelMap().put("cis", list);
		return view;
	}

}